package com.soulapp.data.bean

import com.highcapable.yukihookapi.hook.xposed.prefs.data.PrefsData
import com.soulapp.data.ConfigData
import com.soulapp.hook.hooker.BaseHooker

data class SettingItem(
    var name: String,
    var hooker: BaseHooker,
    var summary: String = ""
) {
    val key: PrefsData<Boolean> by lazy {
        hooker.getKey()
    }
    val enabled: Boolean
        get() = ConfigData.getBoolean(key)
}
